[JBoss JIRA] Created: (JBRULES-763) predicate with multiple variable references causes NPE
by Steve Miner (JIRA)
predicate with multiple variable references causes NPE
------------------------------------------------------
Key: JBRULES-763
URL: http://jira.jboss.com/jira/browse/JBRULES-763
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 3.0.6
Environment: Mac OS X 10.4.9 JBoss Rules 3.0.6
Reporter: Steve Miner
Assigned To: Mark Proctor
I'm trying to use a predicate that has multiple references to bound variables all within the same fact. If I use only one variable, it works, but it causes a NPE if I have two references.
// This rule causes a NPE
rule "more friends than enemies"
when
$p : Person($enemies : enemies, $friends : friends -> ($friends.size() > $enemies.size()))
then
System.out.println($p + " has more friends than enemies");
end
stack trace
org.drools.RuntimeDroolsException: java.lang.NullPointerException
at org.drools.rule.PredicateConstraint.isAllowed(Unknown Source)
at org.drools.common.BetaNodeBinder.isAllowed(Unknown Source)
at org.drools.reteoo.LeftInputAdapterNode.assertObject(Unknown Source)
at org.drools.reteoo.ObjectSource.propagateAssertObject(Unknown Source)
at org.drools.reteoo.ObjectTypeNode.assertObject(Unknown Source)
at org.drools.reteoo.Rete.assertObject(Unknown Source)
at org.drools.reteoo.ReteooRuleBase.assertObject(Unknown Source)
at org.drools.reteoo.ReteooWorkingMemory.doAssertObject(Unknown Source)
at org.drools.common.AbstractWorkingMemory.assertObject(Unknown Source)
at org.drools.common.AbstractWorkingMemory.assertObject(Unknown Source)
at com.sample.DroolsTest.main(DroolsTest.java:51)
Caused by: java.lang.NullPointerException
at com.sample.Rule_more_friends_than_enemies_0Predicate0Invoker.evaluate(Rule_more_friends_than_enemies_0Predicate0Invoker.java:13)
... 11 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
19 years, 3 months
[JBoss JIRA] Created: (JBAS-4324) Race condition when checking logged on client ids
by Adrian Brock (JIRA)
Race condition when checking logged on client ids
-------------------------------------------------
Key: JBAS-4324
URL: http://jira.jboss.com/jira/browse/JBAS-4324
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JMS service
Affects Versions: JBossAS-4.2.0.CR1
Reporter: Adrian Brock
Assigned To: Adrian Brock
Fix For: JBossAS-4.0.5.SP1
The code that checks whether a client id is already logged in is not thread safe.
org.jboss.mq.sm.AbstractStateManager
public void addLoggedOnClientId(String ID) throws JMSException
{
// CHECK NOT ALREADY PRESENT
synchronized (loggedOnClientIds)
{
if (loggedOnClientIds.contains(ID))
throw new InvalidClientIDException("This client id '" + ID + "' is already registered!");
}
// CHECK THIS CLIENT ID IS ALLOWED TO BE SET MANUALLY
checkLoggedOnClientId(ID);
// REGISTER THE CLIENT ID
synchronized (loggedOnClientIds)
{
loggedOnClientIds.add(ID);
}
if (log.isTraceEnabled())
log.trace("Client id '" + ID + "' is logged in.");
}
The two synchronized blocks need combining into one block after we have checked whether
the client id is password protected.
--
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
19 years, 3 months
[JBoss JIRA] Created: (JBAS-4315) Specifiying tag library only by URI picks wrong JSTL core tld
by Wolfgang Knauf (JIRA)
Specifiying tag library only by URI picks wrong JSTL core tld
-------------------------------------------------------------
Key: JBAS-4315
URL: http://jira.jboss.com/jira/browse/JBAS-4315
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Web (Tomcat) service
Affects Versions: JBossAS-4.2.0.CR1
Reporter: Wolfgang Knauf
Assigned To: Remy Maucherat
I built a web app (spec 2.5) with JSTL usage. I included the JSTL with these two steps:
1) added jstl.jar from server\default\deploy\jboss-web.deployer to WEB-INF\lib
2) added this to my JSP page:
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
I did not add c.tld file to WEB-INF, and I did not add a jsp-config element to web.xml.
I add this to the JSP:
<c:out test="${sessionScope.someVariable}"></c:out>
This results in a JSP compilation error:
org.apache.jasper.JasperException: /index.jsp(14,0) According to the TLD or the tag file, attribute value is mandatory for tag out
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:802)
...
I finally found that JBoss resolves "c-1_0.tld" which does not allow "rtexprvalue". The problem is that "c.tld" and "c-1_0.tld" have the same URI.
I think JBoss should look for the highest version matching the requesting web app.
Eclipse WTP 1.5 seems to do this the right way because I do not receive validation errors.
--
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
19 years, 3 months
[JBoss JIRA] Created: (JBAS-4323) XMBean Interceptor for InvokerAdaptorService to deal with NonSerializableExceptions - twiddle getAttributes
by Magesh Kumar B (JIRA)
XMBean Interceptor for InvokerAdaptorService to deal with NonSerializableExceptions - twiddle getAttributes
-----------------------------------------------------------------------------------------------------------
Key: JBAS-4323
URL: http://jira.jboss.com/jira/browse/JBAS-4323
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Management services
Environment: jmx, twiddle
Reporter: Magesh Kumar B
Assigned To: Dimitris Andreadis
When you run twiddle after applying the JBAS-1955 patch we still get the following error:
./twiddle.sh get "jboss.web:J2EEApplication=none,J2EEServer=none,j2eeType=WebModule,name=//localhost/" logger
11:10:52,929 ERROR [Twiddle] Exec failed
java.io.NotSerializableException: org.apache.log4j.Level
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
......
--
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
19 years, 3 months
[JBoss JIRA] Closed: (EJBTHREE-633) OutOfBound exception during startup of EJB3 embeddable
by Ramil Israfilov (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-633?page=all ]
Ramil Israfilov closed EJBTHREE-633.
------------------------------------
> OutOfBound exception during startup of EJB3 embeddable
> ------------------------------------------------------
>
> Key: EJBTHREE-633
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-633
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: EJB 3.0 RC8 - FD
> Environment: windows xp, JDK1.5_07
> Reporter: Ramil Israfilov
>
> We use EJB3 embeddabel RC8 for JUNIT tests of our EJBs.
> After moving to RC8 version we have strange problem on JDK1.5_07 running on windows.
> From junit log file:
> 64952 [main] INFO org.hibernate.impl.SessionFactoryImpl - closing
> 64983 [main] ERROR junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest - java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:296)
> at junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest.startupEmbeddedJboss(SignEncryptSplitTest.java:204)
> at junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest$1.setUp(SignEncryptSplitTest.java:142)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
> Caused by: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:95)
> at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:439)
> at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:486)
> at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:460)
> at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:291)
> ... 8 more
> Caused by: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.rangeCheck(CopyOnWriteArrayList.java:752)
> at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:372)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:341)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
> at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79)
> at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73)
> at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:91)
> ... 12 more
> Strange thing if we run the same test on Solaris JVM (AMD64 platform) with JDK1.5_01 we never had such error.
--
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
19 years, 3 months
[JBoss JIRA] Resolved: (EJBTHREE-633) OutOfBound exception during startup of EJB3 embeddable
by Ramil Israfilov (JIRA)
[ http://jira.jboss.com/jira/browse/EJBTHREE-633?page=all ]
Ramil Israfilov resolved EJBTHREE-633.
--------------------------------------
Resolution: Out of Date
> OutOfBound exception during startup of EJB3 embeddable
> ------------------------------------------------------
>
> Key: EJBTHREE-633
> URL: http://jira.jboss.com/jira/browse/EJBTHREE-633
> Project: EJB 3.0
> Issue Type: Bug
> Affects Versions: EJB 3.0 RC8 - FD
> Environment: windows xp, JDK1.5_07
> Reporter: Ramil Israfilov
>
> We use EJB3 embeddabel RC8 for JUNIT tests of our EJBs.
> After moving to RC8 version we have strange problem on JDK1.5_07 running on windows.
> From junit log file:
> 64952 [main] INFO org.hibernate.impl.SessionFactoryImpl - closing
> 64983 [main] ERROR junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest - java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:296)
> at junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest.startupEmbeddedJboss(SignEncryptSplitTest.java:204)
> at junit.certipost.customers.belgacom.transformation.SignEncryptSplitTest$1.setUp(SignEncryptSplitTest.java:142)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.extensions.TestSetup.run(TestSetup.java:23)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
> at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
> Caused by: java.lang.RuntimeException: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:95)
> at org.jboss.ejb3.Ejb3Deployment.registerEJBContainer(Ejb3Deployment.java:439)
> at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:486)
> at org.jboss.ejb3.embedded.EJB3StandaloneDeployer.start(EJB3StandaloneDeployer.java:460)
> at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.scanClasspath(EJB3StandaloneBootstrap.java:291)
> ... 8 more
> Caused by: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
> at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.rangeCheck(CopyOnWriteArrayList.java:752)
> at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.get(CopyOnWriteArrayList.java:372)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:341)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:438)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:379)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:225)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:151)
> at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:79)
> at org.jboss.kernel.plugins.dependency.AbstractKernelController.install(AbstractKernelController.java:73)
> at org.jboss.ejb3.MCKernelAbstraction.install(MCKernelAbstraction.java:91)
> ... 12 more
> Strange thing if we run the same test on Solaris JVM (AMD64 platform) with JDK1.5_01 we never had such error.
--
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
19 years, 3 months