I am getting a NPE when building a package with guvnor:
 
 
java.lang.NullPointerException
        at org.drools.compiler.PackageBuilder.validateUniqueRuleNames(PackageBuilder.java:826)
        at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:548)
        at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:287)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.loadDeclaredTypes(ContentPackageAssembler.java:249)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.preparePackage(ContentPackageAssembler.java:216)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:103)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:117)
        at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1366)
        at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1350)
 
 
here is my package source:
 
package MyTest
import pack.EventVO
import pack.ExtendedEventVO
declare ExtendedEventVO
    @role( event )
end
 
rule "Test"
 dialect "mvel"
 when
  ExtendedEventVO( )
 then
  System.out.println("Hello World, events happen!!!")
end

rule 'TestEntryPoint'
dialect 'mvel'
 when
  ExtendedEventVO() from entry-point eventDoor
 then
  System.out.println("Hello World, events happen!!!")
end
 
This seems like a possible BUG.
 
Let me know, thanks
 
--zoly