[jboss-jira] [JBoss JIRA] Created: (JBRULES-1865) Build package throws NPE if first line in drl starts with #

Seegler Ittyavirah (JIRA) jira-events at lists.jboss.org
Mon Nov 24 21:20:56 EST 2008


Build package  throws NPE if first line in drl starts with # 
-------------------------------------------------------------

                 Key: JBRULES-1865
                 URL: https://jira.jboss.org/jira/browse/JBRULES-1865
             Project: JBoss Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: drools-guvnor
    Affects Versions:  5.0.0.M2
            Reporter: Seegler Ittyavirah
            Assignee: Mark Proctor


Import a drl file that has some rules and functions, by adding  following line at the top. The line start with '#'

#created on: May 31, 2008
package com.mycompany.app.rules;

Click on Build Package button. 
Server throws NPE

Caused by: java.lang.NullPointerException
        at org.drools.compiler.PackageBuilder.validateUniqueRuleNames(PackageBui
lder.java:508)
        at org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:353
)
        at org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.j
ava:258)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.addDrl(Conte
ntPackageAssembler.java:244)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.preparePacka
ge(ContentPackageAssembler.java:173)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(Conte
ntPackageAssembler.java:86)
        at org.drools.guvnor.server.builder.ContentPackageAssembler.<init>(Conte
ntPackageAssembler.java:96)
        at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceIm
plementation.java:1238)
        at org.drools.guvnor.server.ServiceImplementation.buildPackage(ServiceIm
plementation.java:1228)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
        at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocation
Context.java:31)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:56)
        at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackI
nterceptor.java:28)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:68)
        at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterc
eptor.java:39)
        at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocation
Context.java:68)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list