hey der !
m currently using GUVNOR v5.3.0
i made some DRLs in my Eclipse loaded them to Guvnor repository and after
loads of changes..i was finally able to build my kbase using the repositoy..
my change set is as foolows :
*<?xml version="1.0" encoding="UTF-8"?
<change-set
xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...
<add
<resource source='
http://localhost:8089/drools-guvnor/org.drools.guvnor.Guvnor/package/Indi...
type='DRL' /
</add
</change-set>*
My package name was Individual and it mainly contained technical rule
assests and one function, as shown in the image below :
http://drools.46999.n3.nabble.com/file/n4018919/drools1.png
now i had a few changes in my POJO model so i updated the model and few
rules directly in the technical rule assest of guvnor, after which i built
the package created a new snapshot and tried running it, but got some error,
as :
1. Unable to Analyse Expression @Modify with($a){setExempt("Exempt
Account"),setQueueName("Auto Classified Accounts")};
2. KnowledgeAgent exception while trying to deserialize
KnowledgeDefinitionsPackage
After going through all the available post, nothing proved to be of any help
!!
Then i thought might be changing the "technical assest" directly from guvnor
is a bad idea...
So, i created a new package named "Individual_New", uploaded the new POJO
model and uploaded just one rule from ECLIPSE(just to check if my kbase
builds or not)..
I uploaded just 1 rule in it, build the package and created a snapshot with
name LATEST, changed the change set as below:
*<?xml version="1.0" encoding="UTF-8"?
<change-set
xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/...
<add
<resource source='
http://localhost:8089/drools-guvnor/org.drools.guvnor.Guvnor/package/Indi...
type='DRL' /
</add
</change-set>*
n now when i tried running it, it threw me the following error :
java.lang.RuntimeException: java.io.IOException: Server returned HTTP
response code: 500 for URL:
http://localhost:8089/drools-guvnor/org.drools.guvnor.Guvnor/package/Indi...
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:592)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:701)
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:679)
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:979)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:192)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:174)
at
com.infy.fcs.drools.DroolsAdapter.readKnowledgeBase(DroolsAdapter.java:241)
at com.infy.fcs.drools.DroolsAdapter.main(DroolsAdapter.java:256)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for
URL:
http://localhost:8089/drools-guvnor/org.drools.guvnor.Guvnor/package/Indi...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at org.drools.io.impl.UrlResource.grabStream(UrlResource.java:210)
at org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:146)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:311)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:495)
... 10 more
DEBUG [main] (DroolsAdapter.java:246) - java.io.IOException: Server returned
HTTP response code: 500 for URL:
http://localhost:8089/drools-guvnor/org.drools.guvnor.Guvnor/package/Indi...
java.lang.RuntimeException: java.io.IOException: Server returned HTTP
response code: 500 for URL:
http://localhost:8089/drools-guvnor/org.drools.guvnor.Guvnor/package/Indi...
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:592)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:701)
at
org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:679)
at
org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:979)
at
org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
at
org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:192)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:174)
at
com.infy.fcs.drools.DroolsAdapter.readKnowledgeBase(DroolsAdapter.java:241)
at com.infy.fcs.drools.DroolsAdapter.main(DroolsAdapter.java:256)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for
URL:
http://localhost:8089/drools-guvnor/org.drools.guvnor.Guvnor/package/Indi...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown
Source)
at org.drools.io.impl.UrlResource.grabStream(UrlResource.java:210)
at org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:146)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:311)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:495)
... 10 more
Any help would be appreciated !!
Thanks,
Abhinay
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-Integration-with-Eclipse-Issue-t...
Sent from the Drools: User forum mailing list archive at
Nabble.com.