Regretably, I’m still getting the same error with 5.4.0.Beta2.
I did rebuild my PKG in 5.4.0.Beta2 Guvnor and switched my Drools dependencies over to
5.4.0.Beta2 in my sample app pom too.
Is your 5.4.0 Snapshot later than this, and possibly it was fixed since Beta2?
Thanks,
Herm
From: Esteban [via Drools] [mailto:ml-node+s46999n3751457h76@n3.nabble.com]
Sent: Thursday, February 16, 2012 12:05 PM
To: Herman Post
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for PKG
resources
Could you please try using 5.4.0-SNAPSHOT? I tried to reproduce your error in that
version, but I couldn't. Using 5.3.1 I experienced the error you mentioned.
Please note that in order to change drools version you need to have a binary .pkg compiled
using the same version.
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @
http://www.plugtree.com
- Blog @
http://ilesteban.wordpress.com
2012/2/16 Herman Post <[hidden
email]</user/SendEmail.jtp?type=node&node=3751457&i=0>>
In debug, KnowledgeAgentImpl.createPackageFromResource(), the last line to run is
DroolsStreamUtils.streamIn(is), then an excecption is caught:
this.listener.exception( new RuntimeException( "KnowledgeAgent exception while trying
to deserialize KnowledgeDefinitionsPackage ", ex));
The exception here says “java.lang.ClassNotFoundException:
org.ihc.hwcir.drools.facts.Patient”, which is my Fact model. It doesn’t seem to get
surfaced anywhere.
As my sample illustrates, if I switch to DRL changeset, or put Patient.jar on classpath
all works fine.
Thanks,
Herm
From: [hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=1>
[mailto:[hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=2>] On
Behalf Of Esteban Aliverti
Sent: Thursday, February 16, 2012 10:33 AM
To: Rules Users List
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for PKG
resources
By the way, in the stacktrace you pasted I only see a NullPointerException, but no
ClassNotFoundException. Where are you seeing the ClassNotFoundException?
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @
http://www.plugtree.com
- Blog @
http://ilesteban.wordpress.com
2012/2/16 Herman Post <[hidden
email]</user/SendEmail.jtp?type=node&node=3751457&i=3>>
Thanks Esteban, I will enter in Jira.
Herm
From: [hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=4>
[mailto:[hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=5>] On
Behalf Of Esteban Aliverti
Sent: Thursday, February 16, 2012 10:07 AM
To: Rules Users List
Subject: Re: [rules-users] KnowledgeAgent custom class loader not working for PKG
resources
Seems like a bug to me. The best you can do is to rise a Jira issue.
Actually, the best you can do is to provide a patch also ;)
Best Regards,
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @
http://www.plugtree.com
- Blog @
http://ilesteban.wordpress.com
On Thu, Feb 16, 2012 at 5:59 PM, Hrumph <[hidden
email]</user/SendEmail.jtp?type=node&node=3751457&i=6>> wrote:
Sorry for being a nuisance, but unless we are doing something wrong, this is
a significant issue for us. We are trying to deploy Drools on a remote
server and hope to pull PKG Changesets and Fact models from Guvnor. It is
essential that we can use custom Classloaders in our design.
Should I just enter this in Jira?
Thanks,
Herm
--
View this message in context:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=7>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=8>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=9>
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=3751457&i=10>
https://lists.jboss.org/mailman/listinfo/rules-users
________________________________
If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-...
To unsubscribe from KnowledgeAgent custom class loader not working for PKG resources,
click
here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=...;.
NAML<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=...
--
View this message in context:
http://drools.46999.n3.nabble.com/KnowledgeAgent-custom-class-loader-not-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.