[JBoss JIRA] Created: (JBRULES-3039) CNFE thrown, no reasonable error message due to global type using type arguments
by Wolfgang Laun (JIRA)
CNFE thrown, no reasonable error message due to global type using type arguments
--------------------------------------------------------------------------------
Key: JBRULES-3039
URL: https://issues.jboss.org/browse/JBRULES-3039
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Fix For: 5.2.0.CR1
# no imports here!
global Set<String> nameSet;
causes:
java.lang.ClassNotFoundException: Unable to find class 'Set<String>'
at org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:215)
at org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:946)
at org.drools.compiler.PackageBuilder.newPackage(PackageBuilder.java:920)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:631)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:310)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:486)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
kBuilder.getErrors() returns an irregular error message (no line number, etc.)
GlobalError: nameSet
Expected: no useless stack dump, proper error message.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (JBRULES-3040) SIOOBE (fatal) when compiling DRL declare...extends type with type arguments
by Wolfgang Laun (JIRA)
SIOOBE (fatal) when compiling DRL declare...extends type with type arguments
----------------------------------------------------------------------------
Key: JBRULES-3040
URL: https://issues.jboss.org/browse/JBRULES-3040
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Fix For: 5.2.0.CR1
import java.util.Set;
declare Person extends Set<String>
name : String
end
When compiled, this produces a crash due to:
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1937)
at org.drools.compiler.PackageBuilder.fillSuperType(PackageBuilder.java:1103)
at org.drools.compiler.PackageBuilder.processTypeDeclarations(PackageBuilder.java:1238)
at org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:932)
at org.drools.compiler.PackageBuilder.newPackage(PackageBuilder.java:920)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:631)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:310)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:486)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
I suggest using qualifiedIdentifier after "extends" (similar for 3039 in global)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (JBRULES-3041) NPE (fatal) when compiling DRL declare...extends generic type
by Wolfgang Laun (JIRA)
NPE (fatal) when compiling DRL declare...extends generic type
-------------------------------------------------------------
Key: JBRULES-3041
URL: https://issues.jboss.org/browse/JBRULES-3041
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-compiler (expert)
Affects Versions: 5.2.0.M2
Reporter: Wolfgang Laun
Assignee: Mark Proctor
Fix For: 5.2.0.CR1
import java.util.Set;
declare Person extends Set
name : String
end
Compiling crashes with
Exception in thread "main" java.lang.NullPointerException
at org.drools.compiler.PackageBuilder.mergeInheritedFields(PackageBuilder.java:1173)
at org.drools.compiler.PackageBuilder.processTypeDeclarations(PackageBuilder.java:1267)
at org.drools.compiler.PackageBuilder.mergePackage(PackageBuilder.java:932)
at org.drools.compiler.PackageBuilder.newPackage(PackageBuilder.java:920)
at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:631)
at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:310)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:486)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
This is related to 3040 but is NOT remedied by changing (restricting) the syntax.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months
[JBoss JIRA] Created: (AS7-710) CLI deploy command doesn't allow deploying from a path containing space
by jaikiran pai (JIRA)
CLI deploy command doesn't allow deploying from a path containing space
-----------------------------------------------------------------------
Key: AS7-710
URL: https://issues.jboss.org/browse/AS7-710
Project: Application Server 7
Issue Type: Bug
Components: CLI
Environment: AS7 upstream (dated May 3 2011)
Reporter: jaikiran pai
Assignee: Jason Greene
Trying to deploy a archive from a path containing spaces doesn't work. Tried the following combinations without success:
{code}
[standalone@localhost:9999 /] deploy /home/me/JBoss\ issues/AS7-708/catch-demo.war
Path /home/me/JBoss\ doesn't exist.
{code}
{code}
[standalone@localhost:9999 /] deploy "/home/me/JBoss issues/AS7-708/catch-demo.war"
Path /opt/business/jboss/wc/jbossas/as7/jboss-as/build/target/jboss-7.0.0.Beta4-SNAPSHOT/bin/"/home/me/JBoss doesn't exist.
{code}
{code}
[standalone@localhost:9999 /] deploy /home/me/JBoss issues/AS7-708/catch-demo.war
Path /home/me/JBoss doesn't exist.
{code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 8 months