[JBoss JIRA] Created: (JBRULES-1389) using eval after using or causes ClassCastException
by Jan Boboli (JIRA)
using eval after using or causes ClassCastException
---------------------------------------------------
Key: JBRULES-1389
URL: http://jira.jboss.com/jira/browse/JBRULES-1389
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.3
Environment: Windows XP, Linux,
Reporter: Jan Boboli
Priority: Blocker
when using eval after using or the ClassCastException occurs.
Here is a code of the rule causing classcast :
when
CccObject()
BbbObject($bbb:bbb)
$aaa:AaaObject(aaa==$bbb)
or
AaaObject(aaa=="ccc")
eval($aaa.getAaa().equals($bbb))
then
System.out.println( "Success!!" );
end
here is the stacktrace:
org.drools.RuntimeDroolsException: java.lang.ClassCastException: com.sample.CccObjectShadowProxy cannot be cast to com.sample.BbbObject
at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:76)
...
--
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
18 years, 5 months
[JBoss JIRA] Created: (JBRULES-1472) Problem when mixing alpha and beta constraints in a composite constraint
by Edson Tirelli (JIRA)
Problem when mixing alpha and beta constraints in a composite constraint
------------------------------------------------------------------------
Key: JBRULES-1472
URL: http://jira.jboss.com/jira/browse/JBRULES-1472
Project: JBoss Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.0.4
Reporter: Edson Tirelli
Assigned To: Edson Tirelli
Fix For: 4.0.5, 5.0.0-M1
REPORTED BY Jai Vasanth
The first case
rule "Remove smaller or non-overriden"
dialect "java"
when
L : Response( $r : value && status != "override" )
(Response( value > $r ) or Response( status == "override"))
then
retract( L );
end
breaks down to
rule "Rule1"
dialect "java"
when
L : Response( $r : value && status != "override" )
Response( value > $r )
then
retract( L );
end
and
rule "Rule2"
dialect "java"
when
L : Response( $r : value && status != "override" )
Response( status == "override")
then
retract( L );
end
I see that the first rule removes all objects with smaller values and the second one removes all the ones that arent overridden if there exists an object that has an override
What I dont understand is, why the second one doesnt have similar behaviour
rule "Remove smaller or non-overriden"
dialect "java"
when
L : Response( $r : value && status != "override" )
Response( value > $r || status == "override" )
then
retract( L );
end
When this rule runs , it should start removing objects with smaller values that are *not* overridden . So if an overridden object exists finally we will be left with 2 objects
Response( maxvalue, non override status ) and Response( somevalue, "override" )
When the rule fires now L will take on the first one and the the other object will match the second one since it has an override even though value <= $r . This L should be extracted and we should just be left with the overridden object.
But I still seem to be left with both the objects.
--
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
18 years, 5 months
[JBoss JIRA] Created: (JBPORTAL-1902) forbidden.jsp missing in default installation, causes public demo not working
by Piotr Kubowicz (JIRA)
forbidden.jsp missing in default installation, causes public demo not working
-----------------------------------------------------------------------------
Key: JBPORTAL-1902
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1902
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core
Affects Versions: 2.6.4 Final
Reporter: Piotr Kubowicz
Assigned To: Julien Viet
Today, when I visited http://portal.demo.jboss.com/ from Google I got:
ERROR
Cause: javax.portlet.PortletException: javax.servlet.ServletException: File "/WEB-INF/jsp/permission/forbidden.jsp" not found
Message: javax.servlet.ServletException: File "/WEB-INF/jsp/permission/forbidden.jsp" not found
StackTrace:
javax.portlet.PortletException: javax.servlet.ServletException: File "/WEB-INF/jsp/permission/forbidden.jsp" not found
at org.jboss.portal.portlet.impl.jsr168.api.PortletRequestDispatcherImpl.include(PortletRequestDispatcherImpl.java:91)
The obvious reason is that in default configuration JBoss Portal requires file WEB-INF/jsp/permission/forbidden.jsp, but this file is not provided in default installation. This bug affects not only JBoss Portal public demo, but any JBoss Portal installation.
The solution is to simply include dummy WEB-INF/jsp/permission/forbidden.jsp in portal-core.war
--
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
18 years, 5 months
[JBoss JIRA] Created: (JBPORTAL-1901) getting error on deploying "Caused by: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/locks/Lock"
by Fenzik Joseph (JIRA)
getting error on deploying "Caused by: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/locks/Lock"
---------------------------------------------------------------------------------------------------------------------------------
Key: JBPORTAL-1901
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1901
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Environment: Microsoft Vista
Reporter: Fenzik Joseph
Dear Thomas,
This is Fenzik, India. We are deploying a portal for our intranet with single-sign on(CAS server (v 3.0.7)) + jboss portal (2.6) + jboss-4.2.2.GA. I'm new to these integration so reviewed your wiki[http://wiki.jboss.org/wiki/Wiki.jsp?page=CASSSOFrameworkIntegration]. I struck on deploying in jboss, while starting the server I'm getting error as follows.
I come to know from the forum that you have the solution for this cause, but I couldn't able to locate the exact post. Please help me out.
Attached the entire log file along with this email.
> 13:05:44,348 ERROR [MainDeployer] Could not create deployment: file:/D:/AppsInstalls/jbossAS/server/default/deploy/jboss-portal.sar/
> org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
> at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
> at org.jboss.system.ServiceController.install(ServiceController.java:226)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:623)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at $Proxy4.install(Unknown Source)
> at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
> at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:623)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at $Proxy9.deploy(Unknown Source)
> at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
> at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
> at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
> at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
> at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:623)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
> at $Proxy0.start(Unknown Source)
> at org.jboss.system.ServiceController.start(ServiceController.java:417)
> at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:623)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at $Proxy4.start(Unknown Source)
> at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
> at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
> at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:623)
> at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
> at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
> at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
> at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
> at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
> at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
> at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
> at $Proxy5.deploy(Unknown Source)
> at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
> at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
> at org.jboss.Main.boot(Main.java:200)
> at org.jboss.Main$1.run(Main.java:508)
> at java.lang.Thread.run(Thread.java:674)
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
> at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
> at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
> ... 81 more
> Caused by: java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/locks/Lock
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2406)
> at java.lang.Class.getConstructor0(Class.java:2716)
> at java.lang.Class.getConstructor(Class.java:1674)
> at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1232)
> at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
> at org.jboss.system.ServiceCreator.install(ServiceCreator.java:170)
> ... 83 more
> Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: edu.emory.mathcs.backport.java.util.concurrent.locks.Lock
> at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
> at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
> at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
--
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
18 years, 5 months