Guided Rule Editor doesn't list no-setter-fields if a fact is annotated
by Toshiya Kobayashi
Hello,
In Guvnor 5.3.0, I can use CEP feature support in Guided Rule Editor after uploading a class by "Upload POJO Model jar" and annotating it in "New Declarable Mode".
1. | declare TestPojo
2. | @role(value = event)
3. | end
But if some fields of the POJO class have only getter methods, Guided Rule Editor won't list those fields in "Modify constraints" popup. (if a field has a setter method, it will be listed)
public class TestPojo {
private String name;
public TestPojo() {}
public String getName() { return name; }
// public void setName(String name) { this.name = name; }
}
Am I missing something? If it's not an expected behaviour, I will raise a JIRA.
Cheers,
Toshiya
13 years
adding all packages to kbuilder in web application geting errors...
by srinivasasanda
packagelisturl=http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/webdav/packages
(which show the list of package ==>
Contents of this Folder:
defaultPackage
mortgages
sample
demo
Storeing the result in buffered reader, and manuplateing the eachline and
adding all the package to the kbuilder()
packageurl=http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/
...............................................................................................................
System.out.println(GlobalConfig.getConfigParameterValue("packagelisturl"));
URL packages = new
URL(GlobalConfig.getConfigParameterValue("packagelisturl"));
URLConnection yc = packages.openConnection();
BufferedReader in = new BufferedReader(new
InputStreamReader(yc.getInputStream()));
String inputLine;
inputLine = in.readLine();
System.out.print("inputLine"+inputLine);
while ((inputLine = in.readLine()) != null)
{
System.out.print("inputLine"+inputLine);
String
urlstr=GlobalConfig.getConfigParameterValue("packageurl")+""+inputLine+"/LATEST";
URL url = new URL(urlstr);
UrlResource urlResource =
(UrlResource)ResourceFactory.newUrlResource(url);
urlResource.setBasicAuthentication("enabled");
urlResource.setUsername("admin");
urlResource.setPassword("admin");
_kbuilder.add(urlResource, ResourceType.PKG);
System.out.println("added pacakges into _kbuilder"+urlstr);
}
in.close();
......................................................... some other code
to fire rules.....
This code works fine with simple java application and geting the
result.
but when i try to use this in some web application , the packages are
not adding to kbuilder and it shows the following error
2011-12-21 20:31:01,819 INFO [STDOUT] (http-127.0.0.1-8080-5) after
creating kbuilder
2011-12-21 20:31:01,819 INFO [STDOUT] (http-127.0.0.1-8080-5)
http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.G...
2011-12-21 20:31:01,819 INFO [STDOUT] (http-127.0.0.1-8080-4) INFO 21-12
20:31:01,819 (NilAuthenticator.java:authenticate:35) All users are guests.
2011-12-21 20:31:01,819 INFO [STDOUT] (http-127.0.0.1-8080-4) INFO 21-12
20:31:01,819 (RepositoryServlet.java:allowUser:114) null authenticated for
rest api
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5)
inputLineContents of this Folder:
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5)
inputLinedefaultPackage
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5) added
pacakges into
_kbuilderhttp://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5) Provider
org.drools.io.impl.ResourceProviderImpl could not be set.
2011-12-21 20:31:01,835 ERROR [org.in.treetech.bss.common.cache]
(http-127.0.0.1-8080-5) RuleEngine 234 Provider
org.drools.io.impl.ResourceProviderImpl could not be set.
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5) After adding
packages
2011-12-21 20:31:01,835 ERROR [org.in.treetech.bss.common.cache]
(http-127.0.0.1-8080-5) RuleEngine 173 Provider
org.drools.impl.KnowledgeBaseProviderImpl could not be set.
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5) After
creation of Kbase
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5) FactName
issample-person
2011-12-21 20:31:01,835 ERROR [org.in.treetech.bss.common.cache]
(http-127.0.0.1-8080-5) RuleEngine 390 null
2011-12-21 20:31:01,835 INFO [STDOUT] (http-127.0.0.1-8080-5) Rule engine
ended
--
View this message in context: http://drools.46999.n3.nabble.com/adding-all-packages-to-kbuilder-in-web-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
Regarding implementation of bussiness Rule in Talend
by Lavanya
Hi All,
I am new user of Drools tool. I have done a sample business Rule in
Drools and tested. It is working fine in Drools. So I validated the package
and imported .drl file into talend studio under Meta data (Embedded Rules).
The code generated for the business rule is as follows:
package modelonsales
import salesmodel.Sales
import java.util.ArrayList
import java.util.HashMap
import java.lang.Integer
global ArrayList list
global HashMap globalMap
rule "SalesBR"
dialect "mvel"
when
exists Sales( sales >= "100" )
then
Sales fact0 = new Sales();
fact0.setName( "Discount" );
fact0.setSales( -10 );
insert(fact0 );
end
When I executing the job it is giving errors as follows:
*Starting job DroolsJob at 14:14 21/11/2011.
[statistics] connecting to socket on port 3678
[statistics] connected
[Error: unknown class or illegal statement: Sales]
[Near : {... es fact0 = new Sales();
fact0. ....}]
^
[Line: 1, Column: 13]
at
org.mvel2.compiler.AbstractParser.procTypedNode(AbstractParser.java:1278)
at org.mvel2.compiler.AbstractParser.nextToken(AbstractParser.java:712)
at
org.mvel2.compiler.ExpressionCompiler._compile(ExpressionCompiler.java:106)
at
org.mvel2.compiler.ExpressionCompiler.compile(ExpressionCompiler.java:55)
at
org.drools.rule.builder.dialect.mvel.MVELExprAnalyzer.analyzeExpression(MVELExprAnalyzer.java:86)
at
org.drools.rule.builder.dialect.mvel.MVELDialect.analyzeBlock(MVELDialect.java:492)
at
org.drools.rule.builder.dialect.mvel.MVELConsequenceBuilder.build(MVELConsequenceBuilder.java:84)
at org.drools.rule.builder.RuleBuilder.build(RuleBuilder.java:86)
at org.drools.compiler.PackageBuilder.addRule(PackageBuilder.java:1159)
at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:649)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:290)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:488)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:25)
at
project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBaseDRL(DroolsJob.java:595)
at
project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBase(DroolsJob.java:584)
at
project1.droolsjob_0_1.DroolsJob.tFileInputExcel_2Process(DroolsJob.java:648)
at project1.droolsjob_0_1.DroolsJob.runJobInTOS(DroolsJob.java:1247)
at project1.droolsjob_0_1.DroolsJob.main(DroolsJob.java:1121)
Unable to resolve ObjectType 'Sales' : [Rule name='SalesBR']
Unable to build expression for 'consequence': unknown class or illegal
statement: Sales 'Sales fact0 = new Sales();
fact0.setName( "Discount" );
fact0.setSales( -10 );
insert(fact0 );
' : [Rule name='SalesBR']
Error importing : 'salesmodel.Sales'
Exception in component tRules_2
java.lang.IllegalArgumentException: Could not parse knowledge.
at
project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBaseDRL(DroolsJob.java:604)
at
project1.droolsjob_0_1.DroolsJob$1KnowledgeBase_tRules_2.readKnowledgeBase(DroolsJob.java:584)
at
project1.droolsjob_0_1.DroolsJob.tFileInputExcel_2Process(DroolsJob.java:648)
at project1.droolsjob_0_1.DroolsJob.runJobInTOS(DroolsJob.java:1247)
at project1.droolsjob_0_1.DroolsJob.main(DroolsJob.java:1121)
[statistics] disconnected
Job DroolsJob ended at 14:14 21/11/2011. [exit code=1]
*
I have attached the screen shots as follows:
http://drools.46999.n3.nabble.com/file/n3603531/sales.jpg
http://drools.46999.n3.nabble.com/file/n3603531/sales_error.jpg
Please help me out on this issue.
Thanks and Regards,
Lavanya.
--
View this message in context: http://drools.46999.n3.nabble.com/Regarding-implementation-of-bussiness-R...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
Regarding tBRMS component and embedded Rules in talend
by Lavanya
Hi all,
I am new to Drools tool. I would like to implement the Drools Technical
Rule on the data (Excel file) through Talend Studio by using Embedded Rules
under the metadata or by using tBRMS component from palette. From both ways
we tried the job.
The technical Rule that we want to implement is:
package org.sample
import java.util.ArrayList
import java.util.HashMap
import java.lang.Integer
global ArrayList list
global HashMap globalMap
declare Number
message: String
numberone: Integer
numbertwo: Integer
end
rule "numberone is equals to numbertwo"
when
n: Number(numberone == numbertwo);
then
n.setMessage("numberone is equals to numbertwo");
end
rule "numberone is greater than numbertwo"
when
n: Number(numberone > numbertwo);
then
n.setMessage("numberone is greater than numbertwo");
end
rule "numberone is less than numbertwo"
when
n: Number(numberone < numbertwo);
then
n.setMessage("numberone is less than numbertwo");
end
which contains three rules we need to select one rule in the Embedded Rule
component.
*Note: *The component from embedded Rule and tBRMS component configurations
are different.
When I am using Embedded Rules Job is executed but Records are not getting
in the output.
If I am using the tBRMS component from palette in the configuration package
path, In the class URL in place of "package" it is converted to "packages"
when selecting the .jar file in the configuration. When executing the job it
is giving File not found Exception.
After selecting .jar If "packages" is replaced with "package" , it is giving
java.io.IOException: Server returned HTTP response code: 401 for URL
For these issues I have attached the screen shots as follows:
http://drools.46999.n3.nabble.com/file/n3603474/Embeddedrules.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_1.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_Error_1.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_2.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_Error_2.jpg
Please help me out in this issue.
Thanks and Regards,
Lavanya.
--
View this message in context: http://drools.46999.n3.nabble.com/Regarding-tBRMS-component-and-embedded-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
JbossAS 7 and JBPM Console Server problem
by Cristiano Gavião
Hi,
I'm trying to configure a JBoss AS 7 for JBPM.
I've downloaded the 5.2.0.Final installer, discompacted it and I'm
trying to install jbpm-gwt-console-server using JBossAS Admin Console.
I'm getting this messages:
> 20:09:07,874 INFO [org.jboss.as.jpa] (MSC service thread 1-1)
> Deployment has its own Persistence Provider class
> org.hibernate.ejb.HibernatePersistence
> 20:09:08,243 INFO [org.jboss.as.server.controller]
> (HttpManagementService-threads - 13) Deployment of
> "jbpm-gwt-console-server-5.2.0.Final.war" was rolled back with failure
> message {"Services with missing/unavailable dependencies" =>
> ["jboss.persistenceunit.\"jbpm-gwt-console-server-5.2.0.Final.war#org.jbpm.persistence.jpa\"
> missing [ jboss.naming.context.java.jboss.java:jdbc.testDS1 ]"]}
> 20:09:08,391 INFO [org.jboss.as.server.deployment] (MSC service
> thread 1-1) Stopped deployment jbpm-gwt-console-server-5.2.0.Final.war
> in 164ms
what should I do to resolve this ?
thanks for any tip
Cheers
Cristiano
13 years
Problems importing sub-process with Designer 2.0
by jwest
*Hi,
We saw Tihomir blog about jBPM Web Designer 2.0 released
(http://surdilovic.wordpress.com) where there is mentioned a list of new
features including: ''Support for sub-processes'. We went to the
documentation link but couldn't find anything about sub-process. We'd love
to hear more on this.
We have download and installed the jbpm 5.2, which comes with Designer 2.0,
but when we tried to upload from Eclipse to Guvnor a simple process that
makes reference to a simple sub-process, we are getting the following
exception:*
/17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Unresolved
reference 'my.subprocess'. (inputStream://dummyUriWithValidSuffix.xml, 19,
80)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.handleErrors(XMLLoadImpl.java:83)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:191)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:276)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:36)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:123)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
17:43:27,613 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
java.lang.Thread.run(Thread.java:662)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) Caused by:
org.eclipse.emf.ecore.xmi.UnresolvedReferenceException: Unresolved reference
'my.subprocess'. (inputStream://dummyUriWithValidSuffix.xml, 19, 80)
17:43:27,614 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.handleForwardReferences(XMLHandler.java:1154)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLHandler.endDocument(XMLHandler.java:1228)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:732)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:525)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1938)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLEntityScanner.load(XMLEntityScanner.java:1772)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLEntityScanner.skipSpaces(XMLEntityScanner.java:1273)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1239)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:324)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:845)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
17:43:27,615 ERROR [stderr] (http-localhost-127.0.0.1-8080-8) ... 25 more
17:43:27,615 SEVERE [com.intalio.web.profile.impl.JbpmProfileImpl]
(http-localhost-127.0.0.1-8080-8) null: java.lang.NullPointerException
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201)
[classes:]
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157)
[classes:]
at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
[classes:]
at
com.intalio.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:36)
[classes:]
at
com.intalio.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:123)
[classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
[jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
[classes:]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
[jbossweb-7.0.1.Final.jar:7.0.2.Final]/
*We also tried to load the simple process into Guvnor using the new feature
"import from BPMN2", but we got another exception:*
/18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7)
org.eclipse.emf.ecore.resource.Resource$IOWrappedException: Premature end of
file.
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:201)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.profile.impl.JbpmProfileImpl.getDefinitions(JbpmProfileImpl.java:276)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.server.TransformerServlet.doPost(TransformerServlet.java:225)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
com.intalio.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:75)
18:35:54,368 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
java.lang.Thread.run(Thread.java:662)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) Caused by:
org.xml.sax.SAXParseException: Premature end of file.
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:196)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:175)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:394)
18:35:54,369 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:322)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:281)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:203)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:802)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.XML11Configuration.parse(XML11Configuration.java:768)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:108)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1196)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:555)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.apache.xerces.jaxp.SAXParserImpl.parse(SAXParserImpl.java:289)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) at
org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:181)
18:35:54,370 ERROR [stderr] (http-localhost-127.0.0.1-8080-7) ... 24 more
18:35:54,370 SEVERE [com.intalio.web.profile.impl.JbpmProfileImpl]
(http-localhost-127.0.0.1-8080-7) null: java.lang.NullPointerException
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:201)
[classes:]
at
com.intalio.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:157)
[classes:]
at
com.intalio.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:255)
[classes:]
at
com.intalio.web.server.TransformerServlet.doPost(TransformerServlet.java:225)
[classes:]
/
*Using "import from BPMN2", we also tried pasting the xml (bpmn2 content),
but we got again the former exception regarding to "Unresolved reference
'my.subprocess'". Forgot to tell, the sub-process with Id=my.subprocess was
loaded in Guvnor successfully before trying to upload/import the process
that makes reference to it.
Any help will be appreciated.*
--
View this message in context: http://drools.46999.n3.nabble.com/Problems-importing-sub-process-with-Des...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
JAAS issue for GUVNOR login
by starfish15
Hi,
We are trying to use JAAS to authenticate the GUVNOR login. I have done the
following already.
1. We use Tomcat 6 as the server.
2. Added Realm in the server.xml as follows
<Realm className="org.apache.catalina.realm.JAASRealm"
appName="drools-guvnor"
userClassNames="com.test.user.User" />
drools-guvnor is the drools war file. The Principal class is User.
3. Added the jaas.config file at <Tomcat>/conf as follows
drools-guvnor{
com.test.JaasGuvnor required debug=true;
};
4.Added the jaas-config-name in components.xml of Tomcat as follows
<security:identity authenticate-method="#{authenticator.authenticate}"
jaas-config-name="D:/Tomcat/6.0.29/apache-tomcat-6.0.29/conf/jass.config"/>
However, i continuously get this runtime error as mentioned below whenever i
try to go to GUVNOR
ERROR 20-12 22:48:02,453 (LoggingHelper.java:error:69) Service method
'public abstract org.drools.guvnor.client.rpc.Us
erSecurityContext
org.drools.guvnor.client.rpc.SecurityService.getCurrentUser()' threw an
unexpected exception: java.lan
g.SecurityException: Unable to locate a login configuration
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
javax.security.auth.login.Configuration$3.run(Configuration.java:247)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.Configuration.getConfiguration(Configuration.java:242)
at
javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at
javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:367)
at
javax.security.auth.login.LoginContext.<init>(LoginContext.java:444)
at
org.jboss.seam.security.Identity.getLoginContext(Identity.java:406)
at org.jboss.seam.security.Identity.authenticate(Identity.java:324)
at
org.drools.guvnor.server.security.SecurityServiceImpl.checkAutoLogin(SecurityServiceImpl.java:109)
at
org.drools.guvnor.server.security.SecurityServiceImpl.getCurrentUser(SecurityServiceImpl.java:90)
at
org.drools.guvnor.server.SecurityServiceServlet.getCurrentUser(SecurityServiceServlet.java:63)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
at org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:250)
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:91)
... 46 more
Any help will be highly appreciated.
--
View this message in context: http://drools.46999.n3.nabble.com/JAAS-issue-for-GUVNOR-login-tp3601947p3...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
How to do Rule Flow?
by Venkat
Hi, I have written some rules and now I want to write rule-flow. But there
are few questions.
1. I have written some rules of validation, where if not having values, they
will throw exceptions, in the flow the exception is a different task, so
should I write the rule file for these errors?
2. Also one of the rule in the rule file is a separate task in the
rule-flow. How can I do that.
Please help me on this.
Thanks,
Venkat.
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-do-Rule-Flow-tp3601937p3601937.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years