Bug 724608 (BRMS-520)

Summary: NullPointerException running QA Analisys
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Alessandro Lazarotti <alazarot>
Component: BRM (Guvnor)Assignee: Tihomir Surdilovic <tsurdilo>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: high    
Version: 5.1.0 GACC: gbrey
Target Milestone: ---   
Target Release: 5.1.0.PostGA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/BRMS-520
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Fedora 12, JDK 1.6 sun/oracle
Last Closed: 2010-12-26 04:36:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Sample_x.xls none

Description Alessandro Lazarotti 2010-12-23 16:27:12 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000005f32z&sfdc.override=1
Steps to Reproduce:  - Create in Guvnor a package called decisionTableissue
 - Insert a new declarative model:
	declare Message
		message: String
		status: Integer
	end
 - Create a new spreadsheet Rule (use that I have attached here)
 - Build package
 - Try run QA Analysis
securitylevel_name: Public

If you have in Guvnor a package with Decision Tables, you can not run QA Analisys.
The log has the following Stack Trace:

org.drools.guvnor.client.rpc.VerificationService.analysePackage(java.lang.String) throws com.google.gwt.user.client.rpc.SerializationException' threw an unexpected exception: java.lang.NullPointerException
	at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581)
...

Caused by: java.lang.NullPointerException
	at org.drools.decisiontable.DecisionTableProviderImpl.compileStream(DecisionTableProviderImpl.java:26)
	at org.drools.decisiontable.DecisionTableProviderImpl.loadFromInputStream(DecisionTableProviderImpl.java:19)
	at org.drools.compiler.DecisionTableFactory.loadFromInputStream(DecisionTableFactory.java:18)

Comment 1 Alessandro Lazarotti 2010-12-23 16:30:58 UTC
Attachment: Added: Sample_x.xls


Comment 2 Alessandro Lazarotti 2010-12-23 16:32:49 UTC
Link: Added: This issue is related to GUVNOR-1135


Comment 3 Tihomir Surdilovic 2010-12-26 04:36:59 UTC
Done