[JBoss JIRA] Created: (JBRULES-718) Drools 3.1.0-M1 rules build 3.0.4 compatibility problems with eval statements
by Thomas Gonzalez (JIRA)
Drools 3.1.0-M1 rules build 3.0.4 compatibility problems with eval statements
-----------------------------------------------------------------------------
Key: JBRULES-718
URL: http://jira.jboss.com/jira/browse/JBRULES-718
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Drl Parser/Builder
Affects Versions: 3.1-m1
Environment: windows 2k
Reporter: Thomas Gonzalez
Assigned To: Mark Proctor
Priority: Blocker
Hi Tom - its great you are trying this out - once again - could you attach enough to reproduce this to a JIRA? It will get added to the integration tests.
There is no fundamental reason why you can't cast like that at all, its certainly not a design constraint, just - SHOCK - a bug ! Say it isn't so !
On 3/2/07, Tom Gonzalez <tomgon(a)nortel.com> wrote:
We are in the process of converting from 3.0.4 to 3.1.0-M1 and having problems building rules that have eval statements in them that buil d in 3.0.4 with no problems.
We are getting rules build errors as follows:
[java] Feb 28, 2007 5:55:29 PM com.nortel.connect.rbuilder.RulePackager build
[java] INFO: ============== Start build RulePackage: [engrules.mss] =========
[java] Feb 28, 2007 5:55:29 PM com.nortel.connect.rbuilder.RulePackage addRulesFromDrlFile
[java] INFO: adding Rules from: MG15000Rules.drl (with associated DSL)
[java] Feb 28, 2007 5:55:29 PM com.nortel.connect.rbuilder.RulePackage addRulesFromDrlFile
[java] INFO: parsed rules using dsl
[java] org.drools.RuntimeDroolsException: unable to find the function ','
[java] at org.drools.semantics.java.StaticMethodFunctionResolver.resolveFunction(StaticMethodFunctionResolver.java:9)
[java] at org.drools.semantics.java.FunctionFixer.fix(FunctionFixer.java:132)
[java] at org.drools.semantics.java.FunctionFixer.fix(FunctionFixer.java:103)
[java] at org.drools.semantics.java.FunctionFixer.fix(FunctionFixer.java:66)
[java] at org.drools.semantics.java.builder.EvalBuilder.build(EvalBuilder.java:78)
[java] at org.drools.semantics.java.builder.GroupElementBuilder.build(GroupElementBuilder.java:63)
[java] at org.drools.semantics.java.builder.GroupElementBuilder.build(GroupElementBuilder.java:63)
[java] at org.drools.semantics.java.RuleBuilder.build(RuleBuilder.java:178)
[java] at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:381)
[java] at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:219)
[java] at com.nortel.connect.rbuilder.RulePackage.addRulesFromDrlFile(RulePackage.java:229)
[java] at com.nortel.connect.rbuilder.RulePackager.build(RulePackager.java:206)
[java] at com.nortel.connect.rbuilder.RulePackager.buildAll(RulePackager.java:142)
[java] at com.nortel.connect.rbuilder.RulePackager.main(RulePackager.java:92)
[java] Feb 28, 2007 5:55:30 PM com.nortel.connect.rbuilder.RulePackage addRulesFromDrlFile
We have a number of rules with eval's in them such as:
eval( !(checkVspToInstanceRatio( (Integer)$vsp3ocount, (Integer)$vsp4ecount, (Integer)$vsp3count, (Integer)$nstacount)) );
eval ( !(strInStr((String)$shelfsn,(String)$netwksn))
eval( !(checkDlepNumber( (Integer)$dlepkey, (Integer)$nstakey)) || !(isEvenInteger((Integer)$nstakey))
The parser has issue with the cast syntax in the eval removing the cast (like (Integer) ) cleans up the paser issue however this is not a feasible solution. Casting is required in some cases with out adding a good bit of extra work.
Can you restore the support we previously had for casting with in an eval and retain the flexibility of using casts when needed?
Thanks,
Regards,
Tom G
--
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, 2 months
[JBoss JIRA] Created: (JBPORTAL-1364) wrong javassist version
by Luca Stancapiano (JIRA)
wrong javassist version
-----------------------
Key: JBPORTAL-1364
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1364
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Core
Affects Versions: 2.6.CR2
Environment: ant
Reporter: Luca Stancapiano
Assigned To: Julien Viet
Fix For: 2.6.CR2
I've taken jboss portal from http://anonsvn.jboss.org/repos/portal/tags/JBoss_Portal_2_6_0_SNAPSHOT1
When I execute build.bat through ant , I download thirdparty from web and I have this error about javassist:
BUILD FAILED
C:\mio\workspace_portal_snapshot_2_6_0\build\build.xml:356: The following error
occurred while executing this line:
C:\mio\workspace_portal_snapshot_2_6_0\build\build-thirdparty.xml:116: A version
ing problem exists:
Component: javassist is at version: 3.2.0.GA
but it is also required to be compatible with: [Compatible@82d37{id=null, versi
on=3.3.0.GA}]
by: jboss/jbossretro-rt
Total time: 13 seconds
It tries to use 3.2.0.GA version of javassist but it need to 3.3.0.GA version. If I modify \thirdparty\javassist\component-info.xml so:
version="3.3.0.GA"
projectHome="http://sourceforge.net/projects/jboss"
description="Simple Java bytecode manipulation (cvstag Javassist_3_3_final)">
instead of:
version="3.2.0.GA"
projectHome="http://sourceforge.net/projects/jboss"
description="Simple Java bytecode manipulation (cvstag Javassist_3_2_final)">
it compiles succesfully
--
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: (JBFORUMS-211) Deleting posts error
by oberiko (JIRA)
Deleting posts error
--------------------
Key: JBFORUMS-211
URL: http://jira.jboss.com/jira/browse/JBFORUMS-211
Project: JBoss Forums
Issue Type: Bug
Affects Versions: 1.0.0 RC
Environment: Windows XP, jboss-portal-2.4.1 (bundled), Firefox 2.0.0.3
Reporter: oberiko
Assigned To: Ryszard Kozmik
1. Fresh install of portal (2.4.1 bundled), deploy JBoss Forums
2. Start Portal
3. Create instance of "local.forums.JSFForumsPortlet" (called JBoss Forums)
4. Add a new page with just forums and navigation
5. Go to "First forum" and add a new topic (I used "subject" as the subject and "body" as the body)
6. Go to the post and press the "x" button to delete it
1. Go into Second forum, create two topics
2. Delete one
3. Both topics will be gone, topic / post count will be zero
4. Add a new topic
5. The topic that wasn't deleted will appear again, but the topics / posts count will be 1 (even though 2 topics are available)
6. This same pattern occurs with any number of topics except one. Deleting one always causes all of them to vanish and the topics / posts count to reset itself to 0.
--
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